﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 战棋模拟器
{//需要维护２费随从列表
    class 载人收割机:Minion
    {
        public List<Minion> TwoCostList = new List<Minion>()
        {
            new 恐狼前锋(),
            new 蹦蹦兔(),
            new 吵吵机器人(),
            new 慈祥的外婆(),
            new 光牙执行者(),
            new 粗俗的矮劣魔(),
            new 卡德加(),
            new 石塘猎人(),
            new 食腐土狼(),
            new 微型战斗机甲(),
            new 鱼人猎潮者(),
            new 龙人军官(),
            new 蹒跚的食尸鬼()
        };

        public　载人收割机():base()
        {
            Star = 3;
            Attack = 4;
            Health = 3;
            Race = race.mech;
            count = 1;
        }


        public override void Deathrattle()
        {
            byte[] buffer = Guid.NewGuid().ToByteArray();
            int iSeed = BitConverter.ToInt32(buffer, 0);
            Random ran = new Random(iSeed);
            for(int i = count;i>0;i--)
            {
                int Randkey = ran.Next(0, TwoCostList.Count);
                Minion m = TwoCostList[Randkey].NewOne();
                pool.Spawn(pool, Place, m);
            }
            base.Deathrattle();
        }


        public override Minion NewOne()
        {
            return new 载人收割机();
        }
    }


    class 载人收割机_金色 : 载人收割机
    {
        public 载人收割机_金色() : base()
        {
            Attack *= 2;
            Health *= 2;
            count *= 2;
            buff *= 2;
        }

        public override Minion NewOne()
        {
            return new 载人收割机_金色();
        }
    }
}
